MKDIR = mkdir
RMDIR = rmdir
CP = cp
CD = cd
DD = dd
RM = rm
MAKE = make

CROSS_COMPILE ?= arm-linux-
ARCH ?= arm

CC := $(CROSS_COMPILE)gcc
LD := $(CROSS_COMPILE)ld
OBJCOPY := $(CROSS_COMPILE)objcopy
OBJDUMP := $(CROSS_COMPILE)objdump

CFLAGS = $(HEADFILE_PATH) -c -O2 

/*
 * -Bstatic : Do not link against shared libraries
 * -nostdlib: Only use library directories specified on the command line
 * -T       : Read linker script
 * -Map     : Write a map file
 */

LDFLAGS = -Bstatic -nostdlib -T linscript.lds -Map hyperos_em.map

CPPFLGSLDS = $(HEADFILE_PATH) -E -P